#ifndef _APPCONFIG_H_
#define	_APPCONFIG_H_

#include "gd32f10x_conf.h"

#define LED1                GPIO_DOR_DOR13
#define LED2                GPIO_DOR_DOR14
#define LED3                GPIO_DOR_DOR15
#define KEY                 GPIO_DIR_DIR2  

#define LED_RUN             LED1     
#define LED_COM             LED2
#define LED_WIFI            LED3

#define LedOn(x)            GPIOB->BCR = x 
#define LedOff(x)           GPIOB->BOR = x
#define LedSt(x)            ((~GPIOB->DOR) & x)

#define KeyGet(x)            ((~GPIOB->DIR) & (x))

#endif	/* _APPCONFIG_H_ */

